from typing import List, Dict, Any

# 路由集中配置：通过 import 路径定位到具体的 router 对象
# 说明：
# - import：模块路径，支持 "package.module:attribute"，未写 attribute 默认取 "router"
# - prefix：路由前缀
# - tags：OpenAPI 标签
# - auth：是否需要鉴权（为 True 时，会在 include_router 时附加 Depends(get_current_user)）

ROUTE_CONFIG: List[Dict[str, Any]] = [
    #{"import": "modules.project.routers:router", "prefix": "/project", "tags": ["project"], "auth": True},

    {"import": "modules.system.routers.auth_router:router", "prefix": "/system", "tags": ["system"], "auth": False},
    {"import": "modules.system.routers.user_router:router", "prefix": "/system/users", "tags": ["system-users"], "auth": True},
    {"import": "modules.system.routers.role_router:router", "prefix": "/system/roles", "tags": ["system-roles"], "auth": True},
    {"import": "modules.system.routers.menu_router:router", "prefix": "/system/menus", "tags": ["system-menus"], "auth": True},
    {"import": "modules.system.routers.dept_router:router", "prefix": "/system/depts", "tags": ["system-depts"], "auth": True},
    {"import": "modules.system.routers.dict_router:router", "prefix": "/system/dicts", "tags": ["system-dicts"], "auth": True},
    {"import": "modules.system.routers.dict_item_router:router", "prefix": "/system/dict-items", "tags": ["system-dict-items"], "auth": True},
    {"import": "modules.system.routers.staff_router:router", "prefix": "/system/staffs", "tags": ["system-staffs"], "auth": True},
    {"import": "modules.system.routers.server_router:router", "prefix": "/system/server", "tags": ["system-server"], "auth": True},
    {"import": "modules.system.routers.data_permission_router:router", "prefix": "/system/data-permissions", "tags": ["system-data-permissions"], "auth": True},
    {"import": "modules.system.routers.table_router:router", "prefix": "/system/tables", "tags": ["system-tables"], "auth": True},
    {"import": "modules.code_genrator.routers.gen_business_router:router", "prefix": "/code-generator/businesses", "tags": ["code-generator-businesses"], "auth": True},
    {"import": "modules.code_genrator.routers.gen_column_router:router", "prefix": "/code-generator/columns", "tags": ["code-generator-columns"], "auth": True},
    {"import": "modules.code_genrator.routers.code_router:router", "prefix": "/code-generator", "tags": ["code-generator"], "auth": True},
    {"import": "modules.case_qc.routers.case_qc_router:router", "prefix": "/case-qc", "tags": ["case-qc"], "auth": True},
    {"import": "modules.customer_info.routers.customer_info_router:router", "prefix": "/customer-info", "tags": ["customer-info"], "auth": True},
]